package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.TrainingCadetTeacherNotes;
import com.ruoyi.system.domain.TrainingCadetTeacherNotesCount;
import org.apache.ibatis.annotations.Param;

/**
 * 跟师笔记Mapper接口
 * 
 * @author dp
 * @date 2023-11-27
 */
public interface TrainingCadetTeacherNotesMapper 
{
    /**
     * 查询跟师笔记
     * 
     * @param notesId 跟师笔记主键
     * @return 跟师笔记
     */
    public TrainingCadetTeacherNotes selectTrainingCadetTeacherNotesByNotesId(Long notesId);

    /**
     * 查询跟师笔记列表
     * 
     * @param trainingCadetTeacherNotes 跟师笔记
     * @return 跟师笔记集合
     */
    public List<TrainingCadetTeacherNotes> selectTrainingCadetTeacherNotesList(TrainingCadetTeacherNotes trainingCadetTeacherNotes);

    /**
     * 查询跟师笔记合计列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param notesStatus
     * @param cadetId
     * @param cadetName
     * @return
     */
    public List<TrainingCadetTeacherNotesCount> selectTrainingCadetTeacherNotesCount(@Param("submitBegin") String submitBegin,
                                                                                     @Param("submitEnd") String submitEnd,
                                                                                     @Param("baseId") String baseId,
                                                                                     @Param("notesStatus") String notesStatus,
                                                                                     @Param("cadetId") Long cadetId,
                                                                                     @Param("cadetName") String cadetName);

    /**
     * 根据条件获取跟师笔记列表
     * @param submitBegin
     * @param submitEnd
     * @param baseId
     * @param cadetId
     * @param notesStatus
     * @return
     */
    public List<TrainingCadetTeacherNotes> getNoteList(@Param("submitBegin") String submitBegin,
                                                       @Param("submitEnd") String submitEnd,
                                                       @Param("baseId") String baseId,
                                                       @Param("cadetId") String cadetId,
                                                       @Param("notesStatus") String notesStatus);

    /**
     * 新增跟师笔记
     * 
     * @param trainingCadetTeacherNotes 跟师笔记
     * @return 结果
     */
    public int insertTrainingCadetTeacherNotes(TrainingCadetTeacherNotes trainingCadetTeacherNotes);

    /**
     * 修改跟师笔记
     * 
     * @param trainingCadetTeacherNotes 跟师笔记
     * @return 结果
     */
    public int updateTrainingCadetTeacherNotes(TrainingCadetTeacherNotes trainingCadetTeacherNotes);

    /**
     * 删除跟师笔记
     * 
     * @param notesId 跟师笔记主键
     * @return 结果
     */
    public int deleteTrainingCadetTeacherNotesByNotesId(Long notesId);

    /**
     * 批量删除跟师笔记
     * 
     * @param notesIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTrainingCadetTeacherNotesByNotesIds(Long[] notesIds);
}
